package com.wjk.kylin.id.server.util;


public class SysSession {
    private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<>();

    public SysSession() {
    }

    public static String getTraceId() {
        return THREAD_LOCAL.get();
    }

    public static void setTraceId(String traceId) {
        THREAD_LOCAL.set(traceId);
    }

    public static void removeTraceId() {
        THREAD_LOCAL.remove();
    }

}
